package com.pyz.thread.entity;

/**
 * @author yinzhenpu
 * @date 2022/6/4 12:07:25
 * @description 车票实体类
 */
public class Ticket {
    /**
     * 车票名称
     */
    private String title;
    /**
     * 车票编号
     */
    private long number;

    public Ticket(String title, long number) {
        this.title = title;
        this.number = number;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public long getNumber() {
        return number;
    }

    public void setNumber(long number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Ticket{" +
                "title='" + title + '\'' +
                ", number=" + number +
                '}';
    }
}
